Skip to content

Fix "File name too long" problem - #602

Merged
mikemccand merged 1 commit into
mikemccand:mainfrom
neoremind:truncate_file_name
Jul 30, 2026
Merged

Fix "File name too long" problem#602
mikemccand merged 1 commit into
mikemccand:mainfrom
neoremind:truncate_file_name

Conversation

@neoremind

Copy link
Copy Markdown
Contributor

Follow-up to #576.

The filename-too-long problem not only exists on MacOS, but also exists on Linux. When indexing with facet, the index folder name as well as the jfr filename exceeds the limit. Error message:

[0.411s][error][jfr,startup] Could not start recording, not able to write to file /local/home/xuzh/workspace/logs/baseline_vs_patch/2026.07.23.14.16.52/bench-index-baseline_vs_patch-wikimediumall.fork_lucene.candidate.facets.taxonomy:Date.taxonomy:Month.taxonomy:DayOfYear.sortedset:Date.sortedset:Month.sortedset:DayOfYear.taxonomy:RandomLabel.sortedset:RandomLabel.Lucene90.Lucene104.dvfields.nd33.3326M.jfr. /local/home/zhangxuv/workspace/logs/baseline_vs_patch/2026.07.23.14.16.52/bench-index-baseline_vs_patch-wikimediumall.fork_lucene.candidate.facets.taxonomy:Date.taxonomy:Month.taxonomy:DayOfYear.sortedset:Date.sortedset:Month.sortedset:DayOfYear.taxonomy:RandomLabel.sortedset:RandomLabel.Lucene90.Lucene104.dvfields.nd33.3326M.jfr: File name too long
Error occurred during initialization of VM
Failure when starting JFR on_create_vm_3

Validate on linux and mac:

~ touch "$(python3 -c "print('a' * 255)")"
~ touch "$(python3 -c "print('a' * 256)")"
touch: cannot touch ‘aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa’: File name too long

@mikemccand mikemccand left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'll merge.

@mikemccand
mikemccand merged commit 3b93587 into mikemccand:main Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants